package cn.maple.es.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "book", type = "_doc")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookBean {
    @Id
    private String id;
    private String name;
    private String age;
    private String address;

}

